3.46 \(\int \frac{(a+b x^2) \cosh (c+d x)}{x^3} \, dx\)

Optimal. Leaf size=74 \[ \frac{1}{2} a d^2 \cosh (c) \text{Chi}(d x)+\frac{1}{2} a d^2 \sinh (c) \text{Shi}(d x)-\frac{a \cosh (c+d x)}{2 x^2}-\frac{a d \sinh (c+d x)}{2 x}+b \cosh (c) \text{Chi}(d x)+b \sinh (c) \text{Shi}(d x) \]

[Out]

-(a*Cosh[c + d*x])/(2*x^2) + b*Cosh[c]*CoshIntegral[d*x] + (a*d^2*Cosh[c]*CoshIntegral[d*x])/2 - (a*d*Sinh[c +
 d*x])/(2*x) + b*Sinh[c]*SinhIntegral[d*x] + (a*d^2*Sinh[c]*SinhIntegral[d*x])/2

________________________________________________________________________________________

Rubi [A]  time = 0.178131, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294, Rules used = {5287, 3297, 3303, 3298, 3301} \[ \frac{1}{2} a d^2 \cosh (c) \text{Chi}(d x)+\frac{1}{2} a d^2 \sinh (c) \text{Shi}(d x)-\frac{a \cosh (c+d x)}{2 x^2}-\frac{a d \sinh (c+d x)}{2 x}+b \cosh (c) \text{Chi}(d x)+b \sinh (c) \text{Shi}(d x) \]

Antiderivative was successfully verified.

[In]

Int[((a + b*x^2)*Cosh[c + d*x])/x^3,x]

[Out]

-(a*Cosh[c + d*x])/(2*x^2) + b*Cosh[c]*CoshIntegral[d*x] + (a*d^2*Cosh[c]*CoshIntegral[d*x])/2 - (a*d*Sinh[c +
 d*x])/(2*x) + b*Sinh[c]*SinhIntegral[d*x] + (a*d^2*Sinh[c]*SinhIntegral[d*x])/2

Rule 5287

Int[Cosh[(c_.) + (d_.)*(x_)]*((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegra
nd[Cosh[c + d*x], (e*x)^m*(a + b*x^n)^p, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && IGtQ[p, 0]

Rule 3297

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[((c + d*x)^(m + 1)*Sin[e + f*x])/(d*(
m + 1)), x] - Dist[f/(d*(m + 1)), Int[(c + d*x)^(m + 1)*Cos[e + f*x], x], x] /; FreeQ[{c, d, e, f}, x] && LtQ[
m, -1]

Rule 3303

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[(c*f)/d + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[(c*f)/d + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3298

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(I*SinhIntegral[(c*f*fz)
/d + f*fz*x])/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*e - c*f*fz*I, 0]

Rule 3301

Int[sin[(e_.) + (Complex[0, fz_])*(f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CoshIntegral[(c*f*fz)/d
+ f*fz*x]/d, x] /; FreeQ[{c, d, e, f, fz}, x] && EqQ[d*(e - Pi/2) - c*f*fz*I, 0]

Rubi steps

\begin{align*} \int \frac{\left (a+b x^2\right ) \cosh (c+d x)}{x^3} \, dx &=\int \left (\frac{a \cosh (c+d x)}{x^3}+\frac{b \cosh (c+d x)}{x}\right ) \, dx\\ &=a \int \frac{\cosh (c+d x)}{x^3} \, dx+b \int \frac{\cosh (c+d x)}{x} \, dx\\ &=-\frac{a \cosh (c+d x)}{2 x^2}+\frac{1}{2} (a d) \int \frac{\sinh (c+d x)}{x^2} \, dx+(b \cosh (c)) \int \frac{\cosh (d x)}{x} \, dx+(b \sinh (c)) \int \frac{\sinh (d x)}{x} \, dx\\ &=-\frac{a \cosh (c+d x)}{2 x^2}+b \cosh (c) \text{Chi}(d x)-\frac{a d \sinh (c+d x)}{2 x}+b \sinh (c) \text{Shi}(d x)+\frac{1}{2} \left (a d^2\right ) \int \frac{\cosh (c+d x)}{x} \, dx\\ &=-\frac{a \cosh (c+d x)}{2 x^2}+b \cosh (c) \text{Chi}(d x)-\frac{a d \sinh (c+d x)}{2 x}+b \sinh (c) \text{Shi}(d x)+\frac{1}{2} \left (a d^2 \cosh (c)\right ) \int \frac{\cosh (d x)}{x} \, dx+\frac{1}{2} \left (a d^2 \sinh (c)\right ) \int \frac{\sinh (d x)}{x} \, dx\\ &=-\frac{a \cosh (c+d x)}{2 x^2}+b \cosh (c) \text{Chi}(d x)+\frac{1}{2} a d^2 \cosh (c) \text{Chi}(d x)-\frac{a d \sinh (c+d x)}{2 x}+b \sinh (c) \text{Shi}(d x)+\frac{1}{2} a d^2 \sinh (c) \text{Shi}(d x)\\ \end{align*}

Mathematica [A]  time = 0.147441, size = 80, normalized size = 1.08 \[ \frac{1}{2} a d^2 (\cosh (c) \text{Chi}(d x)+\sinh (c) \text{Shi}(d x))-\frac{a \cosh (d x) (d x \sinh (c)+\cosh (c))}{2 x^2}-\frac{a \sinh (d x) (d x \cosh (c)+\sinh (c))}{2 x^2}+b \cosh (c) \text{Chi}(d x)+b \sinh (c) \text{Shi}(d x) \]

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x^2)*Cosh[c + d*x])/x^3,x]

[Out]

b*Cosh[c]*CoshIntegral[d*x] - (a*Cosh[d*x]*(Cosh[c] + d*x*Sinh[c]))/(2*x^2) - (a*(d*x*Cosh[c] + Sinh[c])*Sinh[
d*x])/(2*x^2) + b*Sinh[c]*SinhIntegral[d*x] + (a*d^2*(Cosh[c]*CoshIntegral[d*x] + Sinh[c]*SinhIntegral[d*x]))/
2

________________________________________________________________________________________

Maple [A]  time = 0.044, size = 110, normalized size = 1.5 \begin{align*}{\frac{da{{\rm e}^{-dx-c}}}{4\,x}}-{\frac{a{{\rm e}^{-dx-c}}}{4\,{x}^{2}}}-{\frac{{d}^{2}a{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{4}}-{\frac{b{{\rm e}^{-c}}{\it Ei} \left ( 1,dx \right ) }{2}}-{\frac{a{{\rm e}^{dx+c}}}{4\,{x}^{2}}}-{\frac{da{{\rm e}^{dx+c}}}{4\,x}}-{\frac{{d}^{2}a{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{4}}-{\frac{b{{\rm e}^{c}}{\it Ei} \left ( 1,-dx \right ) }{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)*cosh(d*x+c)/x^3,x)

[Out]

1/4*d*a*exp(-d*x-c)/x-1/4*a*exp(-d*x-c)/x^2-1/4*d^2*a*exp(-c)*Ei(1,d*x)-1/2*b*exp(-c)*Ei(1,d*x)-1/4*a/x^2*exp(
d*x+c)-1/4*d*a/x*exp(d*x+c)-1/4*d^2*a*exp(c)*Ei(1,-d*x)-1/2*b*exp(c)*Ei(1,-d*x)

________________________________________________________________________________________

Maxima [A]  time = 1.19083, size = 122, normalized size = 1.65 \begin{align*} \frac{1}{4} \,{\left ({\left (d e^{\left (-c\right )} \Gamma \left (-1, d x\right ) + d e^{c} \Gamma \left (-1, -d x\right )\right )} a - \frac{2 \, b \cosh \left (d x + c\right ) \log \left (x^{2}\right )}{d} + \frac{2 \,{\left ({\rm Ei}\left (-d x\right ) e^{\left (-c\right )} +{\rm Ei}\left (d x\right ) e^{c}\right )} b}{d}\right )} d + \frac{1}{2} \,{\left (b \log \left (x^{2}\right ) - \frac{a}{x^{2}}\right )} \cosh \left (d x + c\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*cosh(d*x+c)/x^3,x, algorithm="maxima")

[Out]

1/4*((d*e^(-c)*gamma(-1, d*x) + d*e^c*gamma(-1, -d*x))*a - 2*b*cosh(d*x + c)*log(x^2)/d + 2*(Ei(-d*x)*e^(-c) +
 Ei(d*x)*e^c)*b/d)*d + 1/2*(b*log(x^2) - a/x^2)*cosh(d*x + c)

________________________________________________________________________________________

Fricas [A]  time = 2.02335, size = 254, normalized size = 3.43 \begin{align*} -\frac{2 \, a d x \sinh \left (d x + c\right ) + 2 \, a \cosh \left (d x + c\right ) -{\left ({\left (a d^{2} + 2 \, b\right )} x^{2}{\rm Ei}\left (d x\right ) +{\left (a d^{2} + 2 \, b\right )} x^{2}{\rm Ei}\left (-d x\right )\right )} \cosh \left (c\right ) -{\left ({\left (a d^{2} + 2 \, b\right )} x^{2}{\rm Ei}\left (d x\right ) -{\left (a d^{2} + 2 \, b\right )} x^{2}{\rm Ei}\left (-d x\right )\right )} \sinh \left (c\right )}{4 \, x^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*cosh(d*x+c)/x^3,x, algorithm="fricas")

[Out]

-1/4*(2*a*d*x*sinh(d*x + c) + 2*a*cosh(d*x + c) - ((a*d^2 + 2*b)*x^2*Ei(d*x) + (a*d^2 + 2*b)*x^2*Ei(-d*x))*cos
h(c) - ((a*d^2 + 2*b)*x^2*Ei(d*x) - (a*d^2 + 2*b)*x^2*Ei(-d*x))*sinh(c))/x^2

________________________________________________________________________________________

Sympy [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)*cosh(d*x+c)/x**3,x)

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Giac [A]  time = 1.16015, size = 147, normalized size = 1.99 \begin{align*} \frac{a d^{2} x^{2}{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} + a d^{2} x^{2}{\rm Ei}\left (d x\right ) e^{c} + 2 \, b x^{2}{\rm Ei}\left (-d x\right ) e^{\left (-c\right )} + 2 \, b x^{2}{\rm Ei}\left (d x\right ) e^{c} - a d x e^{\left (d x + c\right )} + a d x e^{\left (-d x - c\right )} - a e^{\left (d x + c\right )} - a e^{\left (-d x - c\right )}}{4 \, x^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)*cosh(d*x+c)/x^3,x, algorithm="giac")

[Out]

1/4*(a*d^2*x^2*Ei(-d*x)*e^(-c) + a*d^2*x^2*Ei(d*x)*e^c + 2*b*x^2*Ei(-d*x)*e^(-c) + 2*b*x^2*Ei(d*x)*e^c - a*d*x
*e^(d*x + c) + a*d*x*e^(-d*x - c) - a*e^(d*x + c) - a*e^(-d*x - c))/x^2